const express = require('express')
const router = express.Router()
const downloadController = require('../controllers/downloadController')
const { authenticate, verifiedOnly } = require('../middlewares/auth')

// 批量下载
router.post('/batch', authenticate, verifiedOnly, downloadController.batchDownload)

// 单个文件下载
router.get('/:id', downloadController.downloadMaterial)

module.exports = router